<?php
require_once '../class/PDODB.class.php';
require_once '../class/ExceptionManager.class.php';
$str="tk,tbm,gvcc";

$a=explode(",",$str);

foreach ($a as $key){
	echo $key;
}

$str=base64_encode('add');

echo $str;

echo "<br>".base64_decode($str);

//echo "<br> SQL Injection :".mysqli_real_escape_string('SELECT * FROM 1=1');

$conn=new PDODB();

$sql="SELECT * FROM tbl_giang_vien WHERE maTTGV_FK=:id AND maGT_FK1=:id2";

$psms=array('id'=>'DGD','id2'=>'NAM');

$conn->Query($sql,$psms);

foreach($conn->Fetch() as $key){
	echo "<br>".$key['maGV'];
}

?>